<?php	

	include_once('db_connection.php');



	class affUser{
	 function get_details($id) {
			$select = "SELECT * FROM tbl_aff_transfer WHERE at_affilate_id='" . $id . "'";
			$query = mysql_query($select) or die(mysql_error());

			if (mysql_num_rows($query)) {
				$results = array();
				while ($row = mysql_fetch_array($query)) {
					foreach ($row as $k => $v) {
						$result->$k = $v;
					}

					$results[] = $result;
				}
				return $results;
			}
		}
                
        
	}

?>